http://sourceforge.net/p/strace/ + my hacks