fixed MacOS C++11 compile issue.