OS X Mavericks compatibility
OS X Mavericks compatibility

(Benedict's code, closes #3)

glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal,glennhickey/hal