fix compiler errors

This fixes some errors. Linux build still does not compile