Added extra unprefixed dlopen.
Add fPIC flag to hopefully fix build errors.