Make compile on both OS X/iOS