added socket functions to newlib