fixed nvmex compilation issues under OSX Mavericks