Block current thread in setup fn until size is set for window.
Merge pull request #65 from nbeloglazov/wait-set-size

Allow to use width and height functions during setup.