lpm: fix scalar version header for C++