Such boards shall be corporate bodies; and as such shall be governed by all the provisions of law relating to, and have and exercise all the privileges and powers of, nonstock corporations.