Added "use-strict" to library files

This found several accidentally global variables