Fix compiler warnings

This pull request fixes two compiler warnings that were introduced lately.