Added check for librt and libpthread to configure