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..."