Only use static compiler option for windows