Compile fix for gcc

I refactored on my mac using clang