allow specifying build_prefix in single_main