Fix building on 64-bit platforms; add/fix 'make distclean'