[mac] fix build issue under osx 10.6