Add missing library linking to executables