Both $table_prefix and $wpdb->prefix should be able to be used, I don't know what WP2BB is doing re-assigning it.
However WP2BB hasn't been updated in over 6 years, most likely it was created before $table_prefix was defined as a global.
You might want to find another plugin that does the same thing but is supported on newer versions of WP.