replace deprecated macros to find Qt from Cmake