remove extra length field

Remove the unneeded `length()` field and rename `size` to `length()`,
which is more intuitive for strings.
add missing includes

to hopefully fix the breaking build on Jenkins Win64 --no-scu. Not
sure why gsysparam.h needed to be changed.