Buildfixes part3

This is small pull request.  One patch will remove unused variables, other add scripts directory with checkpatch.pl script from kernel v3.9-rc5. AFAIK We can't hook it automatically to all remotes. It should be done by some script like autogen.sh, Makefile or by user.