Fixed some linux-specific build warnings/errors