fix patching of functions with JMP at start

fix patching of functions with JMP at start (such as RtlFreeHeap on
Windows XP)
start implementation of stack walker in order to improve memory leak
detection
extracted dynamic array (it was named list actually) into separated file