MAINT: add library sources to some dependencies

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