Minor changes to get Slife building on OSX 10.8 with XCode 4.5.1