Fixed some compilation issues. Updated README.