Fixed Linux compiler errors