Fix the api-example.c compile under Linux