Fix compile errors found with OpenSuse 12.3 64bit.