Set hostname and platform on non windows systems if possible

remove unused class variables