I'm getting the following error when compiling from source: error: use of undeclared identifier 'finite'; did you mean 'isfinite'? changing all function calls to 'isfinite' resolves this issue and builds as expected.