Fix for issue 472
Merge pull request #472 from naxuroqa/master

Build fails when SHARED_TOXCORE flag is set in cmake