Building permits, when required by law, must be obtained by who?