support NetBSD

Here's a little patch to make teeworlds run on NetBSD.
Tested on NetBSD 6.1.2 amd64