Fixes bug causing ssize_t to become unsigned. Enhances Windows compatibility.