Fix ccall warnings with static compile

Fixes `warning: literal address used in ccall for (null); code cannot be statically compiled` since the static compile branch was merged by removing `dlsym` calls. I just want to make sure I didn't break anything on Windows.