add missing regex library to linking stage