Declare getPlugin function public.  Link against libboost_system (which is required by Boost.Thread).