change, where appropriate, to size_t
change the linking interfaces to match changes to code
fix missed size_t typo