build script now links correctly for unix based compilers (GCC)