Merge pull request #294 from weinrank/cherry-pick-windows

Fixing some Windows specific errors and freeing memory in tsctp_upcall