Fix compiler warnings
Fix Makefile to not have build date change halfway during compilation and remove unnessecary mkdir call