Programmatic compilation for reproto