implement a minimal build script to add VERSION and GITCOMMIT

Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>