build: remove compile time dependency on OpenGL

- no longer link against libGL.so
- SDL will dlopen it at runtime
- use the same symbol resolution code that supported windows
- tidy up and automate the funcpoint/functable header generation