Some fixes for old php versions