Fixed build warnings on Ubuntu gcc