Update cabal file. Add window size detection.