Modify resourceCache unittest buildscript to fix gcc bug