Remove -g compilation flag when on unsupported platform