Fix generating of executable