fix undefined symbols when building without whale