virttest.build_helper: Fix undefined reference bug