Make the fix in Server::createSocket depend on the ENABLE_EMBEDDED_SERVER define as well