Fix cmake check for arc4random_buf
Include new hmac/random support files in cmake build
Issue 378: compute string pointers after concatenation, to protect against reallocation moving the string