Declaring method list_memory_allocs() "static" in header

This fixes building shogun with `-DTRACE_MEMORY_ALLOCS=ON`.

Travis won't see a difference, but it should fix buildbots nightly builds:
* http://buildbot.shogun-toolbox.org/builders/nightly_all/builds/691