Altera SDK and binaries

Added functions for ALTERA SDK for OpenCL.
Cast before malloc.