Update flags and add makefile