add timestamped logging, refactor Makefile globals