Compile fix for OSX 10.10

Closes #3