Update makefile for examples and libs.