Fixes from Clang (OS X) compiler warnings

Mostly float casts and format strings.

Overlaps with #48