conv_to_oct: fixed build on 64-bit machines
conv_to_oct: fix speedup program

Move conv. procedures to separate compilation unit
to prevent loop elimination.