fixing ubuntu build errors, one by one.