Changed project to be a proper library, configured output dir and preprocessor definitions