Makefile: add -pthread

Signed-off-by: Martin Stensgård <mastensg@ping.uio.no>