Qt5 needs -fPIC + minor other fixes