Add corelib and init packages to templates