Q exact actions for BF theories