valgrind support
Merge pull request #230 from LudwigOrtmann/issue_154

valgrind support for native