Fix compiler warnings and improve error messages
Add more debug to sysvol sync script
Update upstart scripts to run daemons when samba4 started