Added support of linkage with C++ code

Some new changes broke the way I linked the Core code with my C++ code, so I decided on making a proper solution for this, just like libsodium [does](https://github.com/jedisct1/libsodium/blob/master/src/libsodium/include/sodium/core.h).