Add gcc hardening options to the linux build system.