cmake: use detected yasm executable for CMAKE_ASM_YASM_COMPILER variable
cmake: link platform libraries into the shared library (fixes PPA builds)