Re-implement OS-specific bits from default_gateway, add OpenBSD-support while here
Merge pull request #225 from jasperla/default_gateway

Re-implement OS-specific bits from default_gateway