Fix building on Cygwin
Implements #781 (closed), adapted from https://github.com/CZ-NIC/knot-resolver/pull/86
Self sign-up has been disabled due to increased spam activity. If you want to get access, please send an email to a project owner (preferred) or at gitlab(at)nic(dot)cz. We apologize for the inconvenience.
Implements #781 (closed), adapted from https://github.com/CZ-NIC/knot-resolver/pull/86