work around different NumPy 0.18 compile time configurations