Fix compilation errors

- strdup is not part of the c99 standard
- math library not linked
Merge pull request #1 from kwiskia/master

Fix compilation errors