fixed compile errors
Merge pull request #1 from yokoi-h/restapi-packet

fixed compile errors