Fix handling of lib flags on Windows for GDC/LDC.