Unsafe buildings 'poorly' policed