Add automake subdir-options for modules

The automake project is apparently changing behavior in their next
major version and warning everyone who relies on subdir-options to add
it explicitly.
autoconf syntax error
fix autoconf syntax
fix windows build for last set of commits
fix autoconf syntax