Disable werror and allow gold to be built for full build but not static
Disable gcc warnings
Link with -lpthread when building statically