Fix comptibility for OS X.