remove some compile warnings in xcode
try to fix cross-compile for osx