NEW: added support for valgrind (memcheck) LINUX only. Contributed by MichalB