Fix various OpenBSD compabilities found by Patrik Lundin <patrik.lundin.swe () gmail.com>
FreeBSD fails because PTHREAD_THREADS_MAX is too large for arrays, lets redefine it.
Remove the use of PTHREAD_THREADS_MAX in hsmspeed and add a own define. Also check the threads specified on command line so we do not walk outside the array and segfault.
Include config.h so arc4random() is used
Use arc4random_uniform() first if present
Add changes to NEWS
Merge pull request #86 from jelu/openbsd-1.3

Openbsd compabilities 1.3/develop