This might be an indication that other AVR-specific code is present in addition to the use of the atomic.h macros. In that case, the porting job could be larger and more complex. You might look around to see if there are any alternative libraries that will work without modification.