update for 32bit compilation