Fix allocation/deallocation mismatch
Merge pull request #6 from mscdex/master

Fix allocation/deallocation mismatch
Add build to Makefile to make sure we build before testing.
Bug 980541 - Poll socket with timeout

Deal with 0 bytes returned