Build: Fix BUILD_DYNAMIC Makefile option