build: ensure ld can find libpmem during build