Fix control string in fprintf
Fix makefiles a bit