cleanup compiler flags, set version info