Makefile: fixes for GCC 4.9.1 Linaro compatibility