Changed CMake options to compile the core shared

It is now compiled under 'toxcore' instead of just 'core' to be able to be installed without conflicts.
Merge pull request #302 from ChlorideCull/master

Changed CMake options to compile the core as a shared library instead of static