Changed NURIA_CORE_LIBRARY to cmake-defined NuriaCore_EXPORTS

This possibly fixes weird behaviour, as NURIA_CORE_LIBRARY would be set in
tests, not only for the library.