changes to support Linux