Updated Makefile.rules, kernel compiler flags extraction and build script.