Build on Qt 5.3 and up.

Also fix a compile warning.

Sorry (sort of) for the formatting change, but I think it's much easier to read like this instead of duplicating the whole constructor in an ifdef.