If the shared osmesa lib is not found, then we assume that the library has been compile-time linked via the linker. This is to accommodate build frameworks where compile-time linking is preferred.