ENH: add scalarmathmodule.h.src with integer overflow functions

and use them in scalarmathmodule.c instead of the old (disabled) ones.
MAINT: add library sources to some dependencies

fixes missing recompilation of parts of numpy when the static libraries
change.