Regarding integral. ALGLIB uses high-quality implementation of elliptic integrals from Cephes, but this implementation is restricted to m's within [0,1]. There is remark about it in the subroutine comments, although it may be not clear enough. However, you can use reduction formula from Abramowitz and Stegun (17.4.15, 17.4.17) to reduce m to [0,1].
About stdafx.h - it is required by MSVC, without it compilation will require additional tuning of compiler parameters. There is an empty file in the /src directory which can be used. So I think that this is not very serious problem.
|