fix rng_get_bytes() when compiling with mingw-gcc
hkdf: don't compile if not requested