Fix the api-example.c compile under Linux

Update api-example.c compile command