Cross-Platform MatchTempl library

#issue 1