Merge "Add -latomic to all target builds" into lmp-preview-dev