Add a debug preprocessing macro for project building.
Improve project building. First check for exact matches where possible, then fall back to checking without extension. Still not perfect, but better.