fix makefile to be deterministic