Merge pull request #9 from adriweb/qt

Fix Drag & Drop on Mac OS X Yosemite
Fix build on non-mac platforms
Fix two warnings