Updated build-scripts
Switched from trollop to optparse
use unix standard 'cc' for c compiler