Try to fix FreeBSD build failures with make_shared