Turn on warnings as errors, -std=c99 for C, -std=c++11 for C++. Fix multiple compiler errors. Change gethostbyname to getaddrinfo. Test release and debug builds