Fixed build on desktop with declarative view enabled