Raise minimum SDK to 7
Remove unnecessary attributes for a library