Fix makefile and test_socket_error.lua