DTS M6 Support

compilation fixes