qt5-static: fixes for GNU make selection and *FLAGS