fix ifdef condition for Mac.