pack test is almost done, some fixes in cmake files