Finalize macosx qt5 support.