Added some functions and types used for glutin