Build dlfcn, it has the stubs we want.

from @justincormack