Fix scons script to support mingw32
Change license, add document