Compilation flags fixes