OS X build fixes

Some small fixes to allow xoreos to build under OS X.