Initial compilable code base.
Tested on 1.6.4.