cmake: use detected yasm executable for CMAKE_ASM_YASM_COMPILER variable
cmake: link platform libraries into the shared library (fixes PPA builds)
motion: move StarPatternSearch higher in the file, no behavior change