make compiling success in MacOS platform