p2: add core/version.h rule to Makefile, fix config subcalls