Added a new compatibility layer for libsockets