fix compile warnings on linux

* build: use `c99` and link `.o`s in tests
* package,json: include `strdup/strdup` to prevent "implicit
declaration of function..."
Merge pull request #3 from qute/fix/compile-warnings

fix compile warnings on linux