Added check for librt and libpthread to configure
Added check for librt and libpthread to configure