merge patches for openBSD, for using arc4random() and fix compilation when char is unsigned by default.