(Libretro) Add iOS/Blackberry QNX/Android port + fix OSX build