Place m4 macros into config dir
Add 2 small patches to allow building on windows
Run autotools