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.
Use arc4random() is available in notify_set_timer()
Include config.h so arc4random() is used
Remove unused variables
Use arc4random_uniform() first if present
Corrected the #elif in notify_set_timer() and add usage of arc4random in xfrd_set_timer().
Add changes to NEWS
Merge pull request #83 from jelu/openbsd

OpenBSD compabilities