Added #include and try/n/catch blocks to try to see why fails on some platforms (mainly Teeks).

svn path=/trunk/libs/math/; revision=83560