mfs: ParserHook replaced by more generic BuildHook

BuildHook takes buildprocess's point in which it should be called as a param of function that creates it.