actually it is enough to replace '-no-undefined' with '-Wl,-no-undefined' everywhere...
remove --no-undefined from windows make