build error corrections - from dwalsh