fsharp: 3.0 -> 3.1, and attempt to fix build

Hopefully this fix will appease hydra - the distributed autogen.sh script is annoying.