Pointed out and fix suggestion by Piotr Sikora < piotr.sikora _AT_ frickle.com >, who also provided an initial port, where the part of the port regarding the atomic was taken from. OK landry@