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>
fix derp in gold check

Signed-off-by: Paul Beeler <pbeeler80@gmail.com>
Merge remote-tracking branch 'sm/master' into master