Added compilation script with support for custom configurations.