Refactoring: moved position attribute of ViewPort from public to private visibility.
few compiler warnings fixed.