Linux: Updated implementation after changes on other platforms.

Related to issue #382.