In particular, this fixes it if we are using dynamic libraries by default and don't build the vanilla way.