try to fix osx compile error