Fixed several compiler warnings

Very small changes, fixes some noisy compiler warnings.