fix compile error on osx box