OS X Compiling things

Some stuff needed to compile AQ32 on OS X. Leave commented out for now,
need to check if Windows compiles ok with the new additions.