removed extern "C" in graphix.cpp