Fixed Server allocate failed problem

add platform compatible api ( copy from ofxTCPServer )