Fixed buildscript for Linux/Unix