adapt Ubuntu distro: the order of linker option matters, libpath