Added support for compiling with FB regenerator. Does not work yet.