Fix build warnings and errors