Use conditional compile to QLogginCategory

Some Linux distibutions still use Qt 5.0.