support dynamic linking on other plaftorms than windows