implement some features of #367

@VANTHONG will continue adding features from #367,
@feelpp/feelpp if you have other feature in mind, feel free to add them to the
issue (using comments)
fix compilation