Fix build errors caused by broken project references and missing compilation symbols

Fix broken project references

Add missing NET45 compilation symbol for Debug