Fixed build (API header dependencies)

Removed the unintuitive dependency from GL -> Map.

Solved the build failures by shuffling the order of includes in
dd_share.h. However, the proper way to address the issue would be
to forward declare material_t (Material) in api_gl.h.