Fix a Hostmot2 Resolver bug in 64 bit builds.
Do not assume that "long" is 32 bits in all systems. this bug resulted in the
resolver module being utterly unusable, with the apparent resolver angle varying
randomly by thousands of turns

Signed-off-by: Andy Pugh <andy@bodgesoc.org>