cast NULL sentinel to void * so it is 64bit on alpha & sparc64, use NULL instead of '0' where appropriate.