Better check for lib has only functions (fix #138)