add -fpermissive for Ubuntu 12.04 build