Minor changes
task, event: fix duplicate include & remove list inclusion from header
module: make the structure generic
build.sh: make an option to change the default build target.
Fix a compiler error