added APIENTRY stuff