Initial porting to XCode5. Compiles, but doesn't run.