OpenBSD compatibility

This diff makes masscan compile and work on OpenBSD.