fix viewer compilation