define -buildmode and -linkshared flags (that do nothing much for now)
compile with fPIC when buildmode=shared