Fixed static linking under Windows