fix build errors http://lists.samba.org/archive/samba-technical/2006-January/045048.html