Fixed Linux compilation issues