How to configure with newer Qt libraries