add fix for new api
Fix Mavericks compile issues (qmake).
Merge pull request #80 from da2ce7/master

Fix vairous issues with compile for Mac (and maybe others).