Workaround for missing llrintf()