Fix compile issues
Started trying to integrate viewport draw function