Fixed requiresjs build issues with ptpl.