fix errors in build setup
support simple authenticate() callback for no cleartext password