strdup:ed strings are freed
Added compilation flags