Problem: MS-Windows build is broken. Solution: Remove init in wrong place.
Problem: Still socket code intertwined with netbeans. Solution: Move code from netbeans.c to channel.c
Problem: The socket I/O is intertwined with the netbeans code. Solution: Start refactoring the netbeans communication to split off the socket I/O. Add the +channel feature.