Allow building applications against static libraries with Makefile.shared.