Modified SConstruct to allow debug/release configuration, also normalised Linux detection