Lib can be compiled and loaded as an module for Android

Also, added a variable to check which build is running, with 'custom' OpenGL enabled or not.