Add platform support for MidnightBSD.

Tested with MidnightBSD 0.5-RELEASE