Weak monoids and monads in compact bicategories