Fixes integer precision implicit cast warning on 64-bit platforms

On 64-bit platforms several `size_type` `typedef`s are declared as `size_t`, however, on libxml2 sizes are declared as `int` causing a implicit cast warning on compilation. On many 32-bit platforms `size_t` matches `int` declaration and thus the warning is not visible.