buildsys: add support for building a profiled executable