Simplified conditional compilation for kernel use

Moved choice of malloc/kmalloc, free/kfree, assert/BUG_ON
into include/ntru_crypto_platform.h

No functional changes. Fixed several bugs in kernel case where
BUG_ON behavior differed from assert behavior.