rewrote to use Cmake, and MIR and GLESv2