OSX Mavericks compatibility fix.