Added flags to reduce dll size (significantly!).