dmd installs an object file that matches *.so.* so we need to check for *.o explicitly.
mentioned in issue #10155 (closed)