Completed Windows support for all build options

Not really happy with all these duplicated lines...but I can't figure out a driest way to do that