fix compilation for 1.8