trivial fix build warnings and errors