Use autoconf for detecting pthread stuff
Use autoconf for random device detection