made header to deal with os dependent networking
got rid of all compiler warnings on linux