Added a nasty hack for windowing stuff in linux