Link against osmesa library.