Makefile: add support for gcc 4.9.x