Fixed build errors when attempting to compile sample project.

Fixes errors occur within Xcode 6 (only one I have tested with).