Fix compiler error: Use abs on integer types instead of fabs.
Include gensig.h to get declaration of MaxSignalType.

Fixes compiler warning about implicit declaration.