(libretro-build) Build fixes for OSX