Enhanced makefile configuration (also for Linux kernel module).
Enhanced checks to shrink build time.