Use proper size_t instead of ssize_t which is not defined in MSVC