Added easy build method that works on both windows and linux + added extlibs
Added cleanup method to avoid crash on program exit with mono on linux
When using SplitImage, no longer stretch the middle part but repeat the texture.