Add x86-64 solution configuration + appropriate fixes and improvements in code