Fix msys

few fixes for memory leaks in strongbox, but most importantly making WkCocos build with Msys2/mingw/gcc.