[build] compile rules: generated functions are now private