fix memleak
partial fix on waiting for server to bind (improve speed mainly)
variadic wprint_msg, via stdarg.h