Adapt compilation script for linux environment