Try to fix segfault when replacing malloc and preloading in other executables.