configure: Fix build when clang is installed to a non-standard prefix
Implement generic rint()
Add some missing convert_* functions