Fix various build warnings under Xcode 5.1