fix dependency bugs in 32bit build