set ClsCompliant to true, fixed compiler warnings
Merge pull request #1479 from ppekrol/cls-compliant

set ClsCompliant to true, fixed compiler warnings