Build: fix modernizr building

- Correct typo "hasevents" to "hasevent"
- Don't uglify the build in line with how we treat other deps now
Merge pull request #3579 from nschonni/v4-fix-modernizr-hasevent

Build: fix modernizr building