Support Go1
Move build system and test programs to other packages.