Fix missing APIENTRY in some PROC macros