Fixed build with upstream qbs
Merge pull request #16 from euroelessar/master

A lot of HACKS, but it works now