fix prototypes in graphics library Thanks Johann Klammer