Resolved a compiling error under Linux and Mac.