Fixed pthread linker error

Using gcc 4.7.3 on Ubuntu 13.04 requires the "-lpthread" option.
Configure text cleanup