cygwin: apply cygwin compilation tweaks. thanks ir0nh34d.