fixed a compilcation error on macosx(mavericks)