Stripped-down libbsd buildable on MinGW.