Fix some warns and enhace GIT_TAP in makefiles