fix debug traces for osx