Various fixups against clang (Darwin / OSX)

still has alignment/pointer-mapping warnings though