Create mocks for C libraries to enable RTD builds.