Fix linux/gcc build (and also Qt 5.0 build)