Dump compile and link flags to text files for better compatability between different OS. Needed for compilation on linux, as getting the flags from a recursive make invokation fails there.