Fixed compile issues, added debug static d3d library for test project.