added an option to disable auto-window-selection and fixed a few options in the makefile