fix compile error on osx 10.9.1