Fixed some compiler problem ob buildhost