Fixed errors to compile in my linux environment.