Makefile: Update Makefile and configure

This patch updates all Makefile and configure files to meet
Yocto building requirements

Signed-off-by: Rogerio Pimentel <rogerio.pimentel@freescale.com>