Don't link with librt and libdl when building static library