Added build version knowledge and various fixes.