make compilation with OTP R15 and R16 possible