Add strict build (treat warning as error)

Also clean code for unused function params