fix package building, and tempate static include