[No reviewer required] Add flex and bison as build pre-requisites since they are required for memento/thrift

Fixes issue #784.