Regression fix and typo

While compiling MATE from source, I came across these bugs, thought I should send my fixes back : )