fix spelling errors
update compiler flags
allow to build outside git repository