update Makefile from https://github.com/kmatzen/caffe/commit/ecee2116ea4bd1fb1ec1cbe80ef7b728f3900fa9