Fix vs2010

Two fixes to make statismo (superbuild) compile with VS2010.