Makefile: add rebuild target.
modify to remove build warnings.
use pragma once.