clean up some compiler warnings on 32-bit
fix bitblaster compile error on some platforms