Fixed lib.declare: Don't wrap missing functions.