stubs: allow customizing compile