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.
Merge pull request #1 from epall/fix-crosscomp

Fix cygwin special-case to only happen for cygwin