Compiles on Mac OS using Xcode 4.6.3