Makefile: swap file order
all: remove shared_ptr typedefs

This reduces the number of #includes we need to perform.