Remove compiler flags for unnecessary GLU.
Skip check for csparse headers if library not found.

Previous behavior was to check for the system csparse header files
regardless of whether the library was found or not. This led to a linker
failure when a system header was present, even when `configure` tried to
use the internal csparse library.
Bring back original autoconf check for OpenGL.