Right way to turn off dynamic linking in build.mk