Build fix for OS X (and others?)

Fixes #28

Courtesy of Mister Per Buer.