srandom/random mingw fix