fix the software portability problem advised by elfring