tools: fix warnings with xcode 5.0
tests: fix build with xcode 5.0