Derek Anderson signs with Buffalo for 2019