fixed a building issue for macx, bug#422