Added header for arc4random to mktemp.c Fixed return type of arc4random
Use PWDB getpw* functions if HAVE_PWDB defined Minor other tidyups