fix level 3 msvc warnings in the element files