link with librt and libm on linux