added explicit build tasks and removed some 'inline' keywords to fix compiling