- updated to 2.40.0
- removed obsolete stacktest,cross patches
- updated win32 patch; needs mingw32 with rand_s() function