Fix valgrind and more 32bit fixes