Adding -pthread to LDFLAGS

To get compilation working in Ubuntu 13.10