Dropping unneeded headers.
Removing unecessary pthread link time dependency.