Fixed build warnings