add fixes for linux
add fixes for linux

andystanton/euler,andystanton/euler,andystanton/euler,andystanton/euler,andystanton/euler,andystanton/euler,andystanton/euler,andystanton/euler,andystanton/euler,andystanton/euler,andystanton/euler,andystanton/euler,andystanton/euler