Fix some lint errors and add strict mode to all files.