fix cgminer api-example.c compile