cmake and travis configuration improvement