Fix OS X compatibility issue.