Updated compile script to only link if compile succeeded
Fixed method parameter that with incorrect type.