Also use serials for JIT specializations

This uses the same check now as the cache invalidation, ensuring we
don't use old jitted code versions.
Add back -fPIC to CCDLFLAGS

Also see 22225807eb87f1d2b16c102a6cbdde75062b32b5