Control linkage with build command

Some platforms (ie android) will require static linkage, this makes life
easier