Add option for enabling size hints for the window

Cleaned up #112.