better fix for ccall to nonexistent lib in try catch