Added 'nx_init.h' for the gui-module. This file contains functionality
for initializing/terminating the module. updated the implementation of
nx_window_unix to correspond to recent changes in the api. Ran some
valgrind-tests and corrected some issus that where found.