Fix for Windows
Another fix for Windows
Made smatrix code thread safe by removing statics

Changed all static variables which were only being used as local
variables to be local variables. This avoids threading problems.
Fix a warning and improve handling of graphics
Improve Genetic minimizer and add its tests in Ctest