Fix compilation with make / QT Creator on linux Gentoo 64b

I don't actually know if that breaks compilation on other OSes. The added library dependency may need to be guarded.