added option for enabling cpack; off by default