Made changes suggested by rkern for compatibility with Windows and Visua...

...l Studio

1. Change INT_t to cnp.intp_t from cnp.int_t
2. Eliminate dependence on C99 log2 function
3. Replace 0/0 with np.nan