Fixed compilation for OSX 10.9 Mavericks. Closes #25