Updated to latest decimal.h class and fixed windows compiling