Port server to MinGW
Support ldap on Windows
[win] Fix bugs of LDAP.
Can limit the number of users by command line
[win] Fix bug and improve configure.ac.

Add --enable-mysql configure option.