modify compiling error at macosx mavericks