Simplify Makefile. Add version build script for bug report.