fix compile error using {{make -k check}} in OS X