Various issues:

-Only enable gold-ldflags when gold is enabled.
-add pthread support since no devices use single core anymore...

Signed-off-by: Paul Beeler <pbeeler80@gmail.com>