SHA1 -> lws_SHA1, since it may be conflict with other libs.
And move 'typedef int ssize_t;' to cpp file.