generator: fix double defined function pointers
generator: fix C header on Windows (APIENTRY) improve extension-makros