fix ghdl integer overflow during simulation.
try to improve Makefile for simulation.