Fix the lint errors and make the build work fully on any machine

@nockertsb please review. Sorry, i know it's a really messy diff. More than anything, lets make sure the social stuff is still working w/ this.