Makefile:enable ccache and set optimized flags