windows port

dynamic linking to avoid FLS index overrun; "||" instead of "or"