Fixed segfaults on Ubuntu 12.04
Reading files and sending packets across a network