Importing release branch.

Starting over. Everything compiles and works at this point.
Only tested on AMD 10h family processor.