Build/test errors on OS/X with clang++