Fix compatibility with msvc < 1400

Visual Studio .NET 2003, used by Python 2.5 32 bit, does not support the '__restrict' keyword.
Added some missing declarations to libc/stdio.pxd.
Added tests for some stdio functions.
Fix external reference assignment
PyArray_FROM_OTF and PyArray_FROM_OT should return type `object`

They were declared as returning type `bint`, but this appears to be incorrect.

http://docs.scipy.org/doc/numpy/reference/c-api.array.html#PyArray_FROM_OTF

http://docs.scipy.org/doc/numpy/reference/c-api.array.html#PyArray_FROM_OT
Perform typecheck for (typechecking) builtin casts.
Dissallow bint type for memoryviews.