Re-implement OS-specific bits from default_gateway

And add OpenBSD-support while here.

This re-implements the OS-specifics from serverspec/serverspec#474.