Fix for numpy.empty_like in numpy version 1.5

numpy.empty_like does not have dtype parameter