Electronic and magnetic properties of GdB6