Fix warnings

This fixes warnings that happen on Mac OS X when using clang from the current xcode release.