Clean-up Makefile and change printf to be more crossplatform.