Temporary fix for a compilation error on OS X

fixes #3
fixes #15