compile fix for gcc