Valgrind bugs fixed, but simple example takes a lot of time to execute