libreplace: fix standalone build - add necessary libs.