cmake: on MSVC, CMAKE_CXX_IMPLICIT_LINK_LIBRARIES and PLATFORM_LIBS may be empty
reference: remove unnecessary duplicate variable
compress: missed few lines of code while applying previous patch

1. Increase the eraly skips in rd2
2. Sa8d cost is not calculated, but used in the code