Make gcc libraries static for windows build