Fix halloc bug when reallocing a no-siblings block of memory.
Future-proof detect_arch and make it work on Maxwell devices.
Use halloc for the compiler function too.
Disable custom compilers (will be removed soon).
Fix leak of binary buffer in case of errors.