I don't know much about PerlApp, but my interpretation is that the "Free to wrong pool" bit is just a message being generated during shutdown after the real error has caused things to stop. Are you sure there's no other error message? "Had compilation issues" is not a very useful message.
Class::DBI is pure Perl and makes no use of threads, so I don't suspect a threading issue. Maybe you're just missing a required module?