Add menuitems (compiled version).