Fix build with Qt 5.3

With Qt 5.3 passing in a long long to QFlags became ambiguous for some
reason, and I saw no good reason why it was using long long in the
first place, so I switched it to using ints.
Merge pull request #7 from sandsmark/master

Fix build with Qt 5.3