build: add -fwhole-program for boostcached