Fixing CPack problem

CPack was misconfigured in a number of ways, enabled CPack testing on travis and corrected the associated defects.