flink: switch to FlinkAlgebra

Just a stub switch; no new rules yet
flink: partial fixups for aggregates
flink: compile every apply