Fix compilation errors with iOS 5 SDK

Remove literal dict key set/lookup syntax and wrap BOOL literals in parens