Fix build failure on Xcode 5

I'd like to contribute to Poison/DeepEnd/Tox, so I thought I'd start small. This fixes an issue that prevented me from building Poison. Please let me know if you have something else in mind that I could help with. My C knowledge is limited, but I'd like to learn, if someone could review my commits that'd be great!