Change some linker properties in CMakeLists.
Fix preprocessor define in transactions headers.