Fix CPP issue on OS X