minor fix for osx build