[BUFIX] use proper paths for libatomic_ops
[3rdparty/apr] make long long a candidate for (s)size_t_fmt

Also fixes some related bugs