Various build fixes and improvements

This 

You might want to look at the make rule for the ecpp files. I removed the '-p' flag which, in out-of-tree-builds, caused the components to have names beginning with '..' which further lead to no single component being callable. I didn't add the sed command that replaces the basename / -p flag functionality because all the components are directly contained in the webapp directory anyway; please add it yourself if you think it's appropriate here.