fix building error on os x(homebrew)