fixing window initialization problem in linux