Compat code to make LMMS compile on Qt <4.8

Since the compilation problems on older Qt versions can be easily solved with a macro, I see no reason not to provide this help to packagers.