Compile fixes for windows(?)