Makefile improvements
tested out some compiler options. most of these are not really relevant, -flto does make a difference though
also some improvements to how the different targets are built