[FlasCC] Made moai-core work.

* Added GLS3D submodule
* Made necessary changes to allow moai-core compiling

TODO: Curl not working. Make a curl replacement for HTTP requests.