Fix output executable name and *.d files