fixed complilation issue on Mac OS