adding gl build dependencies, converting MySDL to library with examples