Fix cygwin special-case to only happen for cygwin

When cross-compiling between Linux systems (e.g. OpenWRT buildroot on x86_64 targeting a MIPS system), messing with lib paths is counter-productive and wrong.

Haven't had a chance to test this in my OpenWRT buildroot yet, but will soon.