(OSX) Fix OSX/iOS builds