fix npymath for 32 bit machines