added GNU make and CMake support
win32 doesn't have sethostname