Fix Windows build.

* ssize_t isn't defined by default on Windows.
* New public API files need to be defined in a different file for
  Windows.