Changed mainwin creation ncols value from VIEWPORT_Y dependent to VIEWPORT_X dependent. Might fix the weird issue that Kevin Granade noticed on Linux. Cannot test myself as I do not have Linux OS still.