Remove main file detection for library configurations and don't let <packname>/<packname>.d match as a main file anymore.