Add support of Windows

- Add support of windows by using WIN API for dlopen (LibraryLoad)
- Fix some missing header "ctime"
- Change in CMake to be able to support Windows:
 * ruleset has to be DLL to not duplicate the static for auto registration.