CUSP C++ bindings: use stack allocation for reading data
fix osx compatibility
Bindings: export UDP
Bindings: UDP close() and fixes