Fix extconf.rb to support Qt official installation for Mac