Removed invalid block face handling code
The code for handling invalid block faces is removed by gcc and clang as it is undefined behavior for a enum
to contain a value that is not part of the enum. Since the only way that the line can be executed is through
undefined behavior clang and gcc remove it so the function fits in the caches better.
Removed missiterperatable malfunctioning error handling code
Fixed a few unneeded breaks
Made unreachable code an error
Merge branch 'master' into unreachable

Conflicts:
	SetFlags.cmake
Fixed a couple of unneeded returns in ProtoProxy
Patched tolua to emit range checks for enums
Merge branch 'master' into unreachable

Conflicts:
	SetFlags.cmake
Fixed unessicary return
Fix indentation
Made buffers static const
Merge branch 'master' into unreachable
Fixed =~ bug
Fixed type error in lua bindings
Fixed tolua emitting isnumber insteand of is<Enum>
Added unreachable lines backit prtected by preprocessor guards
Merge branch 'master' into unreachable
Fixed bugs in patched tolua output
Fixed enum checking functions not being called in generated code
Merge branch 'unreachable'