WIP: Fixed compilation and link errors.  Added several functions to easy cretion of simulation components.  Need to be tested with labeled mesh.