Renamed LOG_LEVEL to COMPILE_LOG_LEVEL.
Implemented deduplication.
Rearranged blocks copy function.
Changd default compile log level to OFF.