Fixed littleEndian function.
Added dynamic library handling.
Updated copyright notice year.
Linux compile fixes.
Merge pull request #12 from bitshifter/master

Linux compile fixes
Added pthread semaphore.
Fixed semaphore on OSX.
Added iOS build config.
Added iOS target/obj/lib dirs.
Fixed dlsym.
Added malloc compat header for OSX.
Added iOS simulator configuration.