handle tools builds correctly for executables