fixes for compiler warnings in xcode 5.1 beta