CM3 libraries fix in order to compile

Refer to https://gist.github.com/timbrom/1942280