changed most C style casts to C++ style.
experimented a bit with alligning _alloca.
fixed an oversight in Mem_Alloc16 now uses _aligned_malloc and alligned_free.
added a few new types to idlib from BFG.
added a new function to dynamically cast arrays.

Signed-off-by: revelator <ralphengels@gmail.com>