fix setting of group to created device nodes

Provide a simple implementation for getgrnam_r since missing in
bionic. Found that sysconf(_SC_GETPW_R_SIZE_MAX) is not supported
in bionic and created a wrapper to return a value of 1024.

Signed-off-by: Cedric Hombourger <chombourger@gmail.com>