Enterprise conversion functions
Make enterprise extension into general extensions.

This way, it can more easily be reused for other extensions.
Export --enable-builtin-extensions to subprojects.
Fix compile error on Windows.