Fixes for datetime on numpy 1.6