Build and Linking bugfix for listener object file

Adding the .o dependence
Adding echo on rules
Adjustment for compilation Warning

Included unistd.h to avoid compilation warning for 'close' function