Fixed build errors

- was referring to old zpipes.h
- some security warnings for zsocket_bind calls