Fix compilation on linux
Merge pull request #810 from cfailde/undefined_reference

Fix compilation on linux