Disabling dynamic library when building docs