build: allow absolute paths for module sources
build: allow additional flags to be passed via EXTRAFLAGS

this allows for flags needed for the APM build