Fix log2em1 header guard
Fix linalg and magma header guards