Add missing libraries to examples' Makefiles