Constify windows and Linux specific dynlib funcs