Rewritten Frama-C integration to prepare use of flags coming compile commands support. Fixed error handling.