Add valgrind to matrix, more 32bit fixes