build: don't enable --gc-sections on sunos

The SunOS linker doesn't support it. Fixes build breakage introduced
in commit 9b3de60.