fix so it compiles on os x / clang