Added some platform specific stuff for getting hostname and other stuff necessary for Linux builds