Propagate restricted_to and compatible_with attributes in cgo rules (#1493)

This fixes #1488.
2 files changed