Build breaks on Ubuntu 14.04 due to missing -lpthread

- Append the result of the threads check to DYNAMIPS_LIBRARIES