You have to mark "nw" as an executable ('chmod +xxx nw' in the terminal) and install some external libraries 'libatomic'. I did this and works for me