Fix warnings and add strict mode