On the required list, replace build-essentials with build-essential (drop the s). I would have edited the original post but cannot due to time expiration.
Also need to add libmcrypt-dev to the build essentials apt-get list.
@Slavik, if you could edit the original post this one can be deleted.