GUI: fixed compilation, changed gcc flags