Code cleanup: cross-platform warnings fixed