fix pragma for packing alignment structure
changes for compilation on darwin