Variable size arrays are gcc extension, use new/delete