Fix compile time dependency bcs of platform WS specific.