fence these loads and sets correctly
(take from MTEVerest, add configure.in and #include)