enable c++11
qualify isfinite
Merge branch 'c++11'