fix LinkDef compilation when BUILD_LOG is set