tecorrec: Check for OpenGL and add includes/libs