Fixed a compiling error in Mac.