Added scripts for anti grain plugin. Compile fixes