support compile under mac osx