Fix build under Xcode 5.1 by removing unused vars
Fix build under Xcode 5.1 by removing implicit type conversion