use const buffers in extern input functions
Support 64bit string format on Windows