fix for gcc compile