Fixed the implementation of nx_window_width/height for unix-systems.