Fixes code to build in Xcode 4.6.

Signed-off-by: Daniel Thorpe <dan@blindingskies.com>