Added sanity check to __late_init() and cleaned up makefile a bit.