boost: disable context on unsupported archs

Fixes #17646.
boost: remove hardcoded 'cc' invocation

Fixes #17048.