Fix DIM template function signature
Compile for 32bit